package com.example.redis_canal_mysql_demo.HyperLogController;

import com.example.redis_canal_mysql_demo.hyperLogService.HyperLogLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiHaoyang
 * @date 2023/4/26  18:54
 **/
@Api(tags = "淘宝亿级流量的uv测试")
@RestController
@Slf4j
public class HyperLogLogController {

    @Autowired
    private HyperLogLogService hyperLogLogService;

    @ApiOperation("获取IP去重后的主页访问量")
    @GetMapping("/getUv")
    public Long uv(){
        return hyperLogLogService.uv();
    }
}
